#include <unistd.h>
#include <stdio.h>
#include <netdb.h>


int main(void) {
	char name[1024];
	gethostname(name, sizeof(name));
	printf("current hostname is: %s\n", name);

	struct hostent * h = gethostbyname(name);

	return 0;
}
